<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .zong{
            text-align: center;
            background-color: aqua;
            margin: auto;
        }
        .box{
            width: 800px;
            height: 600px;
            background-color: pink;
            text-align: center;
            border: 1px solid red;
            margin: auto
        }
        p{
            font-weight: 600;
            display: inline-block;
            text-align: center;
        }
        .z1{
            width: 80px;
            height: 200px;
            line-height: 200px;
            background-color: skyblue;
            margin-left: 120px;
            float: left;
        }
        .z2{
            width: 80px;
            height: 200px;
            line-height: 200px;
            background-color: skyblue;
            float: left;
            margin-left: 80px;
        }
        .y2{
            width: 80px;
            height: 200px;
            line-height: 200px;
            background-color: skyblue;
            float: left;
            margin-left: 85px;
        }
        .y1{
            width: 80px;
            height: 200px;
            line-height: 200px;
            background-color: skyblue;
            float: right;
            margin-right: 120px;
        }
    </style>
</head>
<body>
    <script>
        function ji(a,b,c,d){
            document.write(`<div class="zong">
            <div class="box">
                <div class="z1">${a}</div>
                <div class="z2">${b}</div>
                <div class="y2">${c}</div>
                <div class="y1">${d}</div>
            </div>
            <p>第一季度</p><p>第二季度</p><p>第三季度</p><p>第四季度</p></div>`)
        }
        ji(+prompt('第1季度'),+prompt('第2季度'),+prompt('第3季度'),+prompt('第4季度'))
    </script>
</body>
</html>